package gov.nist.healthcare.testframework.client;

import gov.nist.healthcare.configuration.testframework.TestFrameworkDocument;
import gov.nist.healthcare.configuration.testframework.testagent.TestAgentConfigurationDocument;
import gov.nist.healthcare.testframework.Environment;
import gov.nist.healthcare.testframework.TestFramework;
import gov.nist.healthcare.testframework.application.generic.GenericTestAgent;
import java.io.IOException;
import org.apache.xmlbeans.XmlException;

public class TestFrameWorkSoapReciever {

    public static void main(String[] args) throws XmlException, IOException,
            ClassNotFoundException, InstantiationException,
            IllegalAccessException {
        TestFrameworkDocument testFrameworkDocument = TestFrameworkDocument.Factory.parse(TestFrameworkReceiver.class.getResource("/configuration/TestFrameworkSoapConfiguration.xml"));
        TestFramework tf = TestFramework.getInstance();
        tf.init(testFrameworkDocument);
        TestAgentConfigurationDocument testAgentDocument = TestAgentConfigurationDocument.Factory.parse(TestFrameworkReceiver.class.getResource("/configuration/TestAgentSoapConfiguration.xml"));
        GenericTestAgent generic = (GenericTestAgent) Environment.getInstance().addTestAgent(
                testAgentDocument);
    }

}
